package com.lty.mp.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;

/**
 * @author LTY
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user")
public class User {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    private Integer gender;

    @TableField(strategy = FieldStrategy.IGNORED)
    private Integer age;

    @TableField(strategy = FieldStrategy.NOT_NULL)
    private String email;

    @TableField(exist = false)
    private String remark;

    @TableField(value = "is_deleted", condition = "0", fill = FieldFill.INSERT)
    @TableLogic(value = "0", delval = "1")
    private Integer isDeleted = 0;

    @Version
    private Integer version;
}
